package cn.ycl.system.other.study.designMode.singleton;

/**
 * 饿汉式创建单例
 * @author YuanChangLiang
 * @description
 * @date created in 16:47 2022/4/29
 */


public class Singleton2 {
    private static Singleton2 singleton2= new Singleton2();
    private Singleton2(){}

    public Singleton2 getSingleton2(){
        return singleton2;
    }
}
